Xbasic

BROWSE.LOAD Function

Syntax

as P = browse.load(C layoutname [,C style [,C windowname [,C position_x [,C position_y [,* arguments ]]]]])

Arguments

layoutname

The name of the browse to open. In the case where there are duplicate browse names in the database, you can qualify the browse name with the table name using this syntax: Browse Name@Table Name. For example, if a database has a browse called "Customers" for the "Current_Customers" and the "Past_Customers" tables, you can specify the browse as: "Customers@Current_Customers", or "Customers@Past_Customers".

style

Optional. Default = "Dialog". Determines the mode of the browse.

"Popup" = Single line display, ready to accept a new record.
"Dialog" = Display of top N records of the table.
windowname

Not applicable.

position_x

Optional. Default = "center". The horizontal position of the window. Possible values are:

"left"
"right"
"center"
"fill"
"pixel_coordinate"
position_y

Optional. Default = "center". The vertical position of the window. Possible values are:

"top"
"bottom"
"center"
"fill"
"pixel_coordinate"
arguments

*

Description

BROWSE.LOAD()loads Browse_Name into memory and returns the object pointer. To open the browse as a modal dialog box, specify "Dialog" as the optional Style parameter.

Example

dim brw as P
brw = browse.load("Travel Time", "Popup")
brw = browse.load("Travel Time", "Dialog")

Limitations

Desktop applications only.

See Also